package com.yonyou.pmclouds.projectpart.processor;

/**
 * @Description:
 * @Author: qwj
 * @Date: 2020/4/9 15:29
 */
public class Test {
    public static  void  main(String[] args){
        String a1 = "001001";
        int length = 6;
       Integer a2 =  Integer.valueOf(a1);
       ++a2;
       String a2Temp = a2.toString();
        String result = fill(length,a2Temp);
        System.out.println(result);

    }

    private static String fill(int length,String numStr){
        if(length > 0){
            String prefix = "";
            for(int i = 0; i< length-numStr.length();i++){
                prefix += "0";
            }
            return prefix+numStr;
        }
        return null;
    }
}
